Remus: Make xc_domain_restore loop until the fd is closed.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Nov 2009 19:14:03 +0000 (19:14 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Nov 2009 19:14:03 +0000 (19:14 +0000)
commit13ffaa7d3dac41cd4e7c616860b95bab070a53b7
tree1d6366c08c673e566c32bbe4e8fee68de8f32c7e
parentb6119955dfa6c4bf49f47946810bd49245361609
Remus: Make xc_domain_restore loop until the fd is closed.

The tail containing the final PFN table, VCPU contexts and
shared_info_page is buffered, then the read loop is restarted.
After the first pass, incoming pages are buffered until the next tail
is read, completing a new consistent checkpoint. At this point, the
memory changes are applied and the loop begins again. When the fd read
fails, the tail buffer is processed.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
tools/libxc/xc_domain_restore.c
tools/python/xen/xend/XendCheckpoint.py